package com.na.game.engine.platform.sns;


public class BmobUtil {/*

	public static interface GetObjListener<T extends BmobObject> {
		public void onGet(T obj);
	}
	
	// must be run in ui thread
	public static void init() {
		final GameActivity ctx = GameManager.get(GameActivity.class);
		final String appId = Util.getAppMetaString(ctx, "BMOB_ID");
		Bmob.initialize(ctx, appId);
	}
	
	public static void save(BmobObject obj, SaveListener listener) {
		obj.save(GameManager.get(GameActivity.class), listener);
	}
	
	public static <T extends BmobObject> void find(String objId, GetListener<T> listener) {
		BmobQuery<T> query = new BmobQuery<T>();
		query.getObject(GameManager.get(GameActivity.class), objId, listener);
	}
	
	public static <T extends BmobObject> void findObjects(FindListener<T> listener) {
		BmobQuery<T> query = new BmobQuery<T>();
		query.findObjects(GameManager.get(GameActivity.class), listener);
	}
	
	public static <T extends BmobObject> void count(BmobQuery<T> query, Class<T> cls, CountListener listener) {
		query.count(GameManager.get(GameActivity.class), cls, listener);
	}
	
	public static void update(BmobObject obj, UpdateListener listener) {
		obj.update(GameManager.get(GameActivity.class), listener);
	}
	
	public static void delete(BmobObject obj, String objId, DeleteListener listener) {
		obj.setObjectId(objId);
		obj.delete(GameManager.get(GameActivity.class), listener);
	}
	
*/}
